package mvc.bezier;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

import org.geom.curve.ICurve;
import org.render.IRenderer;

import mvc.model.ModelCurve;
import mvc.view.ViewCurve;

public class ViewCurveBezier3D extends ViewCurve { private static final long serialVersionUID = 1L;

	public ViewCurveBezier3D(ModelCurve model, IRenderer r, Dimension d,
			String title) {
		super(model, r, d, title);
	}

	@Override
	public void render(ICurve curve, Graphics g) {
		super.render(curve, g);
		drawStringCurrentT(g);
	}
	
	private void drawStringCurrentT(Graphics g) {
		g.setColor(new Color(0,0,0,140));
		g.drawString("Current t :"+getT(), 50, 50);
	}

	private String getT() {
		return df.format(model.getCurrentT());
	}
}
